package com.xltq.service.impl;

import com.xltq.dao.StudentDao;
import com.xltq.pojo.User;
import com.xltq.service.StudentService;

public class StudentServiceImpl implements StudentService {
    private StudentDao studentDao;

    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    public void add(User user) {
        studentDao.add(user);
    }

    public void del() {
        studentDao.del();
    }

    public void set(String name , String address) {
        studentDao.set(name,address);
    }

    public void query() {
        studentDao.query();
    }

    public int show() {
        return studentDao.show();
    }
}
